﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;


namespace Apmis2._1.Models
{
    public class ApmisContext : DbContext
    
    {
        public ApmisContext()
            : base("ApmisConnection")
        {
            Configuration.LazyLoadingEnabled = false;
            Configuration.ProxyCreationEnabled = false;
            
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<ApmisContext,ApmisMigrationContext>());
            this.Database.Initialize(false);
        }
       public  DbSet<Patient> Patients {get; set;}
       public  DbSet<RegNo> RegNos {get; set;}
    }
}